package com.tuanbiao.ui.setting;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.hzjq.data.entity.ZbServiceEntity;
import com.tuanbiao.R;

/**
 * @author abiao
 * @date 2022/10/26 15:45
 * @description:
 */
public class SettingZBServiceAdapter extends BaseQuickAdapter<ZbServiceEntity, BaseViewHolder> {
    public SettingZBServiceAdapter() {
        super(R.layout.item_setting_zb_service);
    }

    @Override
    protected void convert(@NonNull BaseViewHolder holder, ZbServiceEntity entity) {
        holder.setText(R.id.tv_name, entity.getName())
                .setText(R.id.tv_id,String.valueOf(entity.getId()))
                .setText(R.id.tv_ip,entity.getIp())
                .setText(R.id.tv_port,String.valueOf(entity.getPort()));
    }
}
